package run;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import run.myRule.MySelfRibbonRuleConfig;

/**
 * @author zhangxian
 * @program: parent
 * @description: 服务提供者启动类
 * @date 2022-03-23 09:52:19
 */
@SpringBootApplication(scanBasePackages = {"run.*"})
@EnableEurekaClient
@RibbonClient(name = "serverProviderApplication", configuration = MySelfRibbonRuleConfig.class)
public class ServerConsumerApplication {
    public static void main(String[] args) {
        SpringApplication.run(ServerConsumerApplication.class,args);
    }
}
